import { IDvaState } from "./"

export interface IGloablDvaState {
    count: number
}

const global: IDvaState<IGloablDvaState> = {
    namespace: "global",
    state: {
        count: 0
    },
    reducers: {
        setCount(state, { payload }) {
            return {
                ...state,
                count: payload
            }
        }
    }
}
export default global